package com.qf.exception;

import com.qf.enums.ResultEnum;
import lombok.Getter;

@Getter
public class AppException extends RuntimeException{
    private Integer code;

    public AppException(Integer code,String message) {
        super(message);
        this.code = code;
    }

    public AppException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }


}
